export default class Api {
  /**
   * 响应成功
   */
  success(data: any) {
    return {
      code: 0,
      data: data,
      message: '成功',
    }
  }
  /**
   * 响应失败
   */
  error(message = '失败', code = 1) {
    return {
      code: code,
      data: '',
      message: message,
    }
  }
}
